package generics;


public class Transform<T,E> {

    private T x;
    private E y;

    public T getX() {
        return x;
    }

    public void setX(T x) {
        this.x = x;
    }

    public E getY() {
        return y;
    }

    public void setY(E y) {
        this.y = y;
    }

    public static void main(String[] args) {
        Transform<String,Integer> str=new Transform();
        str.setX("123");
        str.setY(123);
        Transform<String,String> str1=new Transform<>();
        str1.setX("123");
        str1.setY("123");
    }
}
